package amap.com.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import amap.com.android_path_record.MainActivity;
import amap.com.android_path_record.R;

import amap.com.android_path_record.RecordActivity;
import io.reactivex.annotations.NonNull;
import io.reactivex.annotations.Nullable;


public class RecordFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle saveInstanceState){
        return inflater.inflate(R.layout.fragment_record,null);

    }

    @Override
    public void onCreate(@android.support.annotation.Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Intent intent = new Intent(getActivity(), RecordActivity.class);
        startActivity(intent);
    }
}